﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="G.Service._Default" %>

<%@ Register assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    你好,ghw
    </div>
        <asp:Label ID="Label1" runat="server" Text="APP事件定义"></asp:Label>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="EntityDataSource1" EnableModelValidation="True">
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" SortExpression="Id" />
                <asp:BoundField DataField="EventName" HeaderText="EventName" SortExpression="EventName" />
                <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
            </Columns>
        </asp:GridView>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=ServiceEntities" DefaultContainerName="ServiceEntities" EntitySetName="APPEvents" EntityTypeFilter="APPEvent">
        </asp:EntityDataSource>
        <asp:Label ID="Label2" runat="server" Text="APP事件列表"></asp:Label>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="AppId,EventID,Date" DataSourceID="EntityDataSource2" EnableModelValidation="True">
            <Columns>
                <asp:BoundField DataField="AppId" HeaderText="AppId" ReadOnly="True" SortExpression="AppId" />
                <asp:BoundField DataField="EventID" HeaderText="EventID" ReadOnly="True" SortExpression="EventID" />
                <asp:BoundField DataField="Date" HeaderText="Date" ReadOnly="True" SortExpression="Date" />
                <asp:BoundField DataField="EventContent" HeaderText="EventContent" SortExpression="EventContent" />
            </Columns>
        </asp:GridView>
        <asp:EntityDataSource ID="EntityDataSource2" runat="server" ConnectionString="name=ServiceEntities" DefaultContainerName="ServiceEntities" EntitySetName="Events" EntityTypeFilter="Event">
        </asp:EntityDataSource>
    </form>
</body>
</html>
